package com.carleasoft.mps.file.common.constants;

import com.carleasoft.mps.core.result.BaseResult;

/**
 * 服务内业务级别错误码
 * 注意：避免错误编码重复，错误编码规则为该服务端口+0001依次递增，如：66010001
 */
public enum BusinessErrorEnum implements BaseResult {

    FILE_NOT_FOUND_ERROR("66040001", "不存在的文件！"),
    TO_PDF_ERROR("66040002", "类型不能转换！");

    private String code;

    private String message;

    BusinessErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode(){
        return this.code;
    }

    @Override
    public String getMessage(){
        return this.message;
    }
}
